diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-06 19:27:45 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-06 19:30:06 +0100 |
| commit | 722ec20bad64d8c69b173c163011d37ad0b55591 (patch) | |
| tree | 0470e54f758d9383fff3fdb4c9b685faa3bde6ae /src/pages/sujet/[slug].tsx | |
| parent | 1494985a636fe22417615648062f17bc82c35655 (diff) | |
chore: move Main grid to its children
This way I can use full width background for some blocks.
Diffstat (limited to 'src/pages/sujet/[slug].tsx')
| -rw-r--r-- | src/pages/sujet/[slug].tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/pages/sujet/[slug].tsx b/src/pages/sujet/[slug].tsx index bcea544..c3387b4 100644 --- a/src/pages/sujet/[slug].tsx +++ b/src/pages/sujet/[slug].tsx @@ -6,7 +6,7 @@ import { SubjectProps } from '@ts/types/taxonomies'; import { loadTranslation } from '@utils/helpers/i18n'; import { GetStaticPaths, GetStaticProps, GetStaticPropsContext } from 'next'; import { ParsedUrlQuery } from 'querystring'; -import styles from '@styles/pages/Subject.module.scss'; +import styles from '@styles/pages/Listing.module.scss'; import { getAllSubjectsSlug, getSubjectBySlug, @@ -28,19 +28,22 @@ const Subject: NextPageWithLayout<SubjectProps> = ({ subject }) => { }; return ( - <article> + <article className={styles.wrapper}> <PostHeader cover={subject.featuredImage} intro={subject.intro} meta={meta} title={subject.title} /> - <div dangerouslySetInnerHTML={{ __html: subject.content }}></div> + <div + className={styles.body} + dangerouslySetInnerHTML={{ __html: subject.content }} + ></div> {subject.posts.length > 0 && ( - <div> + <section className={styles.section}> <h2>{t`All posts in ${subject.title}`}</h2> <ol className={styles.list}>{getPostsList()}</ol> - </div> + </section> )} </article> ); |
